package com.sunwayworld.basemodule.rm.equipment.repair.resource;

import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.restful.data.RestValidationResultBean;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunwayworld.basemodule.rm.equipment.repair.bean.LimsEquiptRepairBean;
import com.sunwayworld.basemodule.rm.equipment.repair.service.LimsEquiptRepairService;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import com.sunwayworld.framework.support.auditable.resource.GenericAuditableResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableResource;
import org.springframework.web.bind.annotation.RequestMethod;

@RequestMapping("/secure/basemodule/trm/equipt/equipt-repairs")
public interface LimsEquiptRepairResource extends GenericResource<LimsEquiptRepairService, LimsEquiptRepairBean, Long>, GenericAuditableResource<LimsEquiptRepairService, LimsEquiptRepairBean, Long>, GenericChoosableResource<LimsEquiptRepairService, LimsEquiptRepairBean, Long> {
    @RequestMapping(value = "/action/validate-chinese/{columnName}/{columnValue}", method = RequestMethod.POST)
    RestValidationResultBean validateChineseValue(RestJsonWrapperBean wrapper, @PathVariable String columnName, @PathVariable String columnValue);
}
